package com.tangyuan.live.entity.enums;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum LiveManagementTypeEnum {

    //HAVE_NOT_STARTED(0,"未开始"),
    SHIFT_OUT(1,"移出"),
    SHUT_UP(2,"禁言"),
    ;

    public final Integer type;
    public final String statusStr;

    public static LiveManagementTypeEnum getEnum(Integer status){
        for (LiveManagementTypeEnum value : LiveManagementTypeEnum.values()) {
            if(value.type.equals(status)){
                return value;
            }
        }
        return SHUT_UP;
    }
}
